﻿namespace IcicleFramework
{
    public static class DeepCopyExtensions
    {
        public static T DeepCopy<T>(this T item) where T : IDeepCopyable<T>, new()
        {
            var newThing = new T(); 
            item.CopyInto(newThing); 
            return newThing;
        }
    }
}
